import Layout from '@/layout'

const taskManageRouter = {
  path: '/taskManage',
  component: Layout,
  redirect: '/taskManage/complaintManage',
  name: 'taskManage',
  meta: {
    title: '任务管理',
    icon: 'taskManage',
    roles: 'NORMAL_ADMIN'
  },
  children: [
    {
      path: 'complaintManage',
      component: () => import('@/views/taskManage/complaintManage'),
      name: 'complaintManage',
      meta: {
        title: '申诉管理',
        icon: 'complaintManage',
        roles: 'NORMAL_ADMIN'
      }
    },
    // {
    //   path: 'orderManage',
    //   component: () => import('@/views/taskManage/orderManage'),
    //   name: 'orderManage',
    //   meta: {
    //     title: '订单管理',
    //     icon: 'orderManage'
    //   }
    // },
    // {
    //   path: 'evaluationManage',
    //   component: () => import('@/views/taskManage/evaluationManage'),
    //   name: 'evaluationManage',
    //   meta: {
    //     title: '评价管理',
    //     icon: 'evaluationManage'
    //   }
    // },
    {
      path: 'businessTaskManage',
      component: () => import('@/views/taskManage/businessTaskManage'),
      name: 'businessTaskManage',
      meta: {
        title: '商家任务管理',
        icon: 'taskConfig',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'buyerTaskManage',
      component: () => import('@/views/taskManage/buyerTaskManage'),
      name: 'buyerTaskManage',
      meta: {
        title: '买手任务管理',
        icon: 'taskConfig',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'taskConfig',
      component: () => import('@/views/taskManage/taskConfig'),
      name: 'taskConfig',
      meta: {
        title: '任务配置',
        icon: 'taskConfig',
        roles: 'NORMAL_ADMIN'
      }
    }
  ]
}

export default taskManageRouter
